<template>
  <div id="app">
    <!-- <div class="box_colse">
      <i  style="margin-right: 5px;" class="el-icon-minus app_minus" @click="handelMinus">
      </i>
      <i class="el-icon-close app_close" @click="handelClose">
      </i>
    </div> -->

    <router-view />
  </div>
</template>
<script>
import {  Windowclose,Windowminus } from '../wailsjs/go/main/App'
export default {
  mounted() {
    window.messageBox = (type, text) => this.messageBox(type, text);
    // success
    // warning
    // error
    // info
  },
  methods: {
    // 消息提示
    messageBox(type, text) {
      this.$message[type](text)
    },
    handelMinus() {
      Windowminus();
    },
    // 关闭窗口
    handelClose() {
      Windowclose();

    }
  }
}
</script>
<style lang="less">
#app {
  --wails-draggable: drag;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.box_colse {
  display: inline-block;
  position: fixed;
  top: 2px;
  right: 2px;
  z-index: 9999;
  color: #fff;
  font-size: 30px;
}
</style>
